package com.itheima_13;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class test_13_2 {
    public static void main(String[] args) {
        String str[]={"黑龙江省","浙江省","江西省","广东省","福建省"};
        String str1[]={"哈尔滨","杭州","南昌,","广州","福州"};
        HashMap<String,String> hm=new HashMap();
        for (int i = 0; i < str.length; i++) {
            hm.put(str[i],str1[i]);
        }
        Set<Map.Entry<String, String>> entries = hm.entrySet();
        for (Map.Entry<String, String> entry : entries) {
            System.out.println(entry.getKey()+"---"+entry.getValue());

        }
    }
}
